#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdlib.h>

#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"

#define DEBUG 0
#define NOISY_TEST 1

int checkWhoseTurn(struct gameState *state);

int checkWhoseTurn(struct gameState *state){

	// Received state
    int t = state->whoseTurn;

    int r;
	
	// Testing state
    r = whoseTurn(state);

    assert (t == r);

    return 0;
}

int main () {

    int i, n;

    struct gameState g;

    printf ("Testing whoseTurn.\n");

	g.whoseTurn = floor(Random() * MAX_PLAYERS);
    checkWhoseTurn(&g);
    
    printf ("whoseTurn OK");

    return 0;
}